package al.ui;

import java.util.Vector;


public class Test {

	public Test() {
		exp2();
		//expMYSQL();
		//expMYSQL2();
	}

	
	void expMYSQL() {
		Database db = new Database();
		db.open("gestphar", "root", "");
		Vector<Vector<String>> rs = db.select("Courrier");
	
		for (int i = 0; i < rs.size(); i++) {
			Vector<String> row = rs.get(i);
			for (int j = 0; j < row.size(); j++) {
				System.out.print(row.get(j) + "\t");
			}
			System.out.println();
		}
	}
	
	void exp2(){
		Database db = new Database();
		db.open("gestphar", "root", "");
		//db.executeSelect("Courrier");
		db.selectTest("Courrier");
	}

	void expMYSQL2() {
		Database db = new Database();
		db.open("gestphar", "root", "");
		db.execute("insert into forme values(13,'edfzeis')");
	}

	public static void main(String[] args) {
		new Test();
	}

}
